package lab02.test37;

public class Test37 {
    public static void main(String[] args) {
        Undergraduate undergraduate = new Undergraduate();
        undergraduate.ID = "001";
        undergraduate.name = "张三";
        undergraduate.math = 95;
        undergraduate.english = 85;
        undergraduate.computer = 96;

        Graduate graduate = new Graduate();
        graduate.ID = "002";
        graduate.name = "李四";
        graduate.math = 98;
        graduate.english = 96;
        graduate.computer = 90;

        System.out.println("ID"+"\t\t"+"姓名"+"\t\t"+"数学："+
                "\t\t"+"英语"+"\t\t"+"计算机"+"\t\t"+"是否通过");

        System.out.println(undergraduate.toString());
        undergraduate.undergraduate();

        System.out.println(graduate.toString());
        graduate.graduate();


    }
}
